package com.csj.eurekafeign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author:ChengshaoJie
 * @Description:设置断路由方法
 * @Date:Created in 下午 4:45 2019/4/22 0022
 */
@FeignClient(value = "eureka-client",fallback = FeignServiceHiHystricImpl.class)
public interface FeignServiceHi {
    /**
     * 调用了eureka-client服务的“/hello”接口
     * */
    @RequestMapping(value = "/eureka-client/hello", method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
